<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="" width="1000" />
    <button @click="goHome">返回首页</button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
let $router = useRouter();
const goHome = () => {
  $router.push("/home");
};
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  background: skyblue;
  display: flex;
  justify-content: center;
  button {
    margin-top: 250px;
    width: 150px;
    height: 70px;
    border-radius: 35px;
    background: orange;
  }
}
</style>
